package com.bosssoft.boss_exam_db.validator.common;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/***
 * @Author lys(cherish)
 * @Phone 17720799636
 * @Date  2019/3/13
 * @Descriptionh 用户名校验
 **/
public class SchoolValidator implements ConstraintValidator<School, String> {


    @Override
    public void initialize(School school) {
    }

    @Override
    public boolean isValid(String value, ConstraintValidatorContext constraintValidatorContext) {
        if(value==null||"".equals(value)){
            return false;
        }
        return true;
    }
}
